const state = {
    data: [],
    pageTotal: 0,
    query: {
        pageIndex: 1,
        pageSize: 10,
        ids: '',
        importName: '',
        actorImportName: '',
        albumImportName: '',
        cppoaName: '',
        genre: '',
        isrc: '',
        status: '',
        creator: ''
    },
    playList_1: [
    ],
    currentIndex_1: -1
}

const mutations = {
    SET_MVMANAGE_DATA: (state, data) => {
        state.data = data
    },
    SET_MVMANAGE_PAGETOTAL: (state, pageTotal) => {
        state.pageTotal = pageTotal
    },
    SET_MVMANAGE_QUERY: (state, query) => {
        state.query = query
    },
    SET_CURRENT_INDEX_1: (state, currentIndex_1) => {
        state.currentIndex_1 = currentIndex_1
    },
    SET_PLAYLIST_1: (state, playList_1) => {
        state.playList_1 = playList_1
    },
}


// ajax异步请求要么放在组件发 要么 放在actions发
// 这里是放在组件发
const actions = {

}

export default {
    state,
    mutations,
    actions
}